<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css">
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/base.css">
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/common.css">
	<script charset="utf-8" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="<?php echo Yii::app()->request->baseUrl; ?>/js/base.js"></script>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>


<body>
	<div id="site_nav">
		<div id="sn_bd">
			<div class="sn_container">
				<p class="sn_login_info">
					欢迎来到佐名片!
					<?php 
					if(Yii::app()->user->isGuest)
					{
					 ?>
					<a href="#login" class="sn_login">请登录</a>
					<a href="#register" class="sn_register">免费注册</a>
					<?php }else{
						?>
					<a href="<?php echo Yii::app()->createUrl("profile/index"); ?>" class="sn_login"><?php echo Yii::app()->user->name; ?></a>	
					<a href="<?php echo Yii::app()->createUrl("site/logout"); ?>" class="sn_register">注销</a>
					<?php } ?>
					<i class="sn-separator"></i>					
					<a href="#" class="sn_shop">购物车0件</a>
				</p>
			</div>
		</div>
	</div>
	<div id="main">
	<?php echo $content; ?>
	</div>
	<!-- 尾部 -->
	<div id="footer">
		<div id="footer_container">
			<div class="foot_tip r100">
				<h1>分享、订阅</h1><hr>
				<ul>	
					<li>订阅此页面</li>
					<li>分享到Twitter</li>
					<li>分享到Facebook</li>
				</ul>
				
			</div>
			<div class="foot_tip r100">
				<h1>友情链接</h1><hr>
				<ul>	
					<li>金星纸业有限公司</li>
					<li>文涛网</li>
					<li>食品笔记</li>
					<li>议论纷纷</li>
				</ul>
				
			</div>
			<div class="foot_tip r50">
				<h1>联系我们</h1><hr>
				<p>是否已经有疑问</p>
				<p>是否已经心动？</p>
				<p>那你还在等什么</p>
				<p>全国销售热线：</p>
				<p>0731-7900657</p>
				</ul>
				
			</div>
			
		</div>
		<p class="m15">copyright © 2011 wxq.com.All Rights Reserved</p>
	</div>
	<?php 
		$this->widget('login');
		$this->widget('register');
	 ?>
	
</body>
</html>
